package com.bafa.front.presentationbeans;

import java.util.TreeSet;

import com.bafa.objects.Match;
import com.bafa.objects.player.PlayerMatch;
import com.bafa.objects.team.Team;
import com.bafa.services.RetrieveServices;

public class TeamListBean {

	private TreeSet teams = new TreeSet();
	private TreeSet names = new TreeSet();
	/**
	 * Used to display list of top scorers for a division for a season
	 * @param scorers
	 * @param seasonId
	 * @param divisionId
	 */
	public TeamListBean(Team[] teams) {
		for(int i=0;i<teams.length;i++){
			this.teams.add(new TeamBean(teams[i],0));
		}
	}
	
	
	public TeamBean[] teams(){
		return (TeamBean[])teams.toArray(new TeamBean[teams.size()]);
	}
	public TreeSet getTeams() {
		return teams;
	}

	public void setTeams(TreeSet players) {
		this.teams = players;
	}
	
}
